package com.agileboot.domain.question.form;

import com.agileboot.domain.question.vo.QuestionVo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author lx
 * @implNote 2024/2/26
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class QuestionForm {
    //题目id
    private Integer id;
    //题目类型
    private Integer quType;
    //题目难度
    private Integer level;
    //题库id列表
    private Integer[] quBankId;
    //题目内容
    private String quContent;
    //题目图片
    private String image;
    //题目解析
    private String analysis;
    //创建人
    private String createPerson;
    //题目选项
    private QuestionForm.Answer[] Answer;

    //答案对象
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class Answer {
        //选项id
        private Integer id;
        //是否是正确选项
        private String isTrue;
        //选项内容
        private String answer;
        //图片
        private String images;
        //选项解析
        private String analysis;
    }
}
